//
//  ViewController.m
//  SingletonTest
//
//  Created by ZJ on 2018/3/20.
//  Copyright © 2018年 iCatch Technology Inc. All rights reserved.
//

#import "ViewController.h"
#import "ZJTestObject.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    [self test];
}

- (void)test {
    ZJTestObject *obj1 = [ZJTestObject sharedTestObject];
    NSLog(@"--> obj1: %@", obj1);
    
    ZJTestObject *obj3 = [ZJTestObject new];
    NSLog(@"--> obj3: %@", obj3);
    
    ZJTestObject *obj2 = [[ZJTestObject alloc] init];
    NSLog(@"--> obj2: %@", obj2);
    
    ZJTestObject *obj4 = obj1.copy;
    NSLog(@"--> obj4: %@", obj4);
    
    ZJTestObject *obj5 = obj2.mutableCopy;
    NSLog(@"--> obj5: %@", obj5);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
